﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Editor.ascx.cs" Inherits="Admin_Crimson_Controls_Editor" %>
<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
<style type="text/css">
    .infoContainer
    {
        width: 600px;
    }
</style>

<script language="javascript" type="text/javascript">
<%--
   The follow method is called by Page TypeSelector.aspx
 --%>
    function setSelected(id, name) {    
        $("#<%=HiddentSelectedTypeId.ClientID %>").val(id);
        $("#<%=selectType.ClientID %>").text(name);
    }   
</script>

<div class="infoContainer">
    <div>
        <asp:Button ID="ButtonSave" runat="server" Text="保存" OnClick="save" ToolTip="保存" />
    </div>
    <div>
        <asp:Label ID="LabelSelectType" runat="server">类型：</asp:Label>
        <input type="text" id="HiddentSelectedTypeId" runat="server" style="display: none" />
        <asp:HyperLink NavigateUrl="TypeSelector.aspx?KeepThis=true&TB_iframe=true&height=400&width=600"
            CssClass="thickbox" ID="selectType" runat="server" Text="选择类型" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请选择信息类型"
            ControlToValidate="HiddentSelectedTypeId"></asp:RequiredFieldValidator>
    </div>
    <div>
        <asp:CheckBox ID="CheckBoxIsPublisher" runat="server" Text="是否发布" TextAlign="Left" />
    </div>
    <div>
        <asp:Label ID="label1" runat="server" AssociatedControlID="textboxKeywords">搜索关键字:</asp:Label>
        <asp:TextBox ID="textboxKeywords" runat="server" Width="100%"></asp:TextBox>
    </div>
    <div>
        <asp:Label ID="Label3" runat="server" Text="标题:" AssociatedControlID="TextboxTitle"></asp:Label>
        <asp:TextBox ID="TextboxTitle" runat="server" Width="550px"></asp:TextBox>
    </div>
    <div>
        <asp:Label ID="Label4" runat="server" Text="信息时间:" AssociatedControlID="TextBoxInfoTime"></asp:Label>
        <asp:TextBox ID="TextBoxInfoTime" runat="server" Width="100px"></asp:TextBox>
        <asp:RegularExpressionValidator ControlToValidate="TextBoxInfoTime" ID="RegularExpressionValidatorTimeFormat"
            runat="server" ErrorMessage="请输入以下任何一个 2008-1-1 、 2008-01-01、2008.01.01、2008/01/01 2008_01_01"></asp:RegularExpressionValidator>
        <div>
            <asp:Label ID="Label2" runat="server" Text="文章内容简介:" AssociatedControlID="TextBoxComment"></asp:Label>
            <asp:TextBox ID="TextBoxComment" runat="server" TextMode="MultiLine" Width="100%"
                MaxLength="150"></asp:TextBox>
        </div>
        <div>
            <CE:Editor ID="Editor1" runat="server" ThemeType="OfficeXP" ShowDecreaseButton="False"
                Width="100%" Height="432px" ShowEnlargeButton="False" EnableTheming="True" EnableContextMenu="False"
                EnableBrowserContextMenu="False" ShowGroupMenuImage="True" ShowPreviewMode="True"
                ShowHtmlMode="True" ShowTagSelector="True" ShowToolBar="True" ShowBottomBar="True"
                ShowCodeViewToolBar="True" AutoConfigure="Compact" EnableStripScriptTags="False">
                <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderWidth="1px" BorderStyle="Solid"
                    CssClass="CuteEditorFrame"></FrameStyle>
            </CE:Editor>
        </div>
    </div>
</div>
